// 全局注册 公共组件
import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import ImageUpload from './ImageUpload'
import Print from 'vue-print-nb'
import ScreenFull from './ScreenFull'
import ThemePicker from './ThemePicker'
import LangSelect from './LangSelect'
import TagsView from './TagsView'

export default {
  install (Vue) {
    // 注册全局的工具栏组件对象
    Vue.component('PageTools', PageTools)
    // 注册导入excel组件
    Vue.component('UploadExcel', UploadExcel)
    // 注册导入图片上传组件
    Vue.component('ImageUpload', ImageUpload)
    // 注册打印的插件
    Vue.use(Print)
    // 注册全屏功能组件
    Vue.component('ScreenFull', ScreenFull)
    // 注册更换主题颜色功能组件
    Vue.component('ThemePicker', ThemePicker)
    // 注册更换语言功能组件
    Vue.component('LangSelect', LangSelect)
    // 注册多页签
    Vue.component('TagsView', TagsView)
  }
}
